﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OLTS.DATA_SERVICE;
using OLTS.MODEL;
using OLTS.WEB.BaseClass;

namespace ONTS.WEB.Views
{
    public partial class AdminManageTimesheet : BaseWebpage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["LOGIN"] != null)
                { 

                    foreach (var a in Utility.getSiteAll().ToList())
                    {
                        ddlSite.Items.Add(new ListItem(a.NAME, a.ID.ToString()));
                    }
                }
                else
                {
                    Response.Redirect("/AccessDeniedPage.aspx");
                }  
            }
        }
         
         
    }
}